package com.webinsky.publish.service;

import com.webinsky.publish.domain.EmailSettingInfo;

public interface EmailSettingManagement {
	/**
	 * 如果Id已经存在，更新
	 * @param setting
	 */
	void createOrUpdate(EmailSettingInfo setting);
	/**
	 * 通过站点下载
	 * 
	 * @param siteId
	 * @return
	 */
	EmailSettingInfo loadBySiteId(int siteId);
	/**
	 * 测试发送邮件接口
	 * 
	 * @param siteId
	 */
	boolean testSendEmail(int siteId);
}
